package demo5.service;

import demo5.dao.IUserDao;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements IUserService{
    private IUserDao IUserDao;
    

    @Override
    public boolean login(String username, String password) {
        System.out.println("UserService:开始处理登录操作");
        System.out.println("UserService:验证信息是否有误");
        System.out.println("UserService:获取用户信息");
        if(IUserDao.findUser()){
            System.out.println("UserService:用户信息验证成功");
            return true;
        }else{
            System.out.println("UserService:用户信息验证失败");
            return false;
        }

    }
}
